################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include src/subdir.mk
-include gcc_startup/subdir.mk
-include firmware/cmsis/src/subdir.mk
-include firmware/GD32G5x3_standard_peripheral/Source/subdir.mk
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
endif

-include ../makefile.defs

OPTIONAL_TOOL_DEPS := \
$(wildcard ../makefile.defs) \
$(wildcard ../makefile.init) \
$(wildcard ../makefile.targets) \


BUILD_ARTIFACT_NAME := Analog_voltage_detector
BUILD_ARTIFACT_EXTENSION := elf
BUILD_ARTIFACT_PREFIX :=
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)

# Add inputs and outputs from these tool invocations to the build variables 
SECONDARY_FLASH_HEX += \
Analog_voltage_detector.hex \

SECONDARY_FLASH_BIN += \
Analog_voltage_detector.bin \

SECONDARY_LIST += \
Analog_voltage_detector.lst \

SECONDARY_SIZE += \
Analog_voltage_detector.siz \


# All Target
all: main-build

# Main-build Target
main-build: Analog_voltage_detector.elf secondary-outputs

# Tool invocations
Analog_voltage_detector.elf: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
	@echo 'Building target: $@'
	@echo 'Invoking: GD ARM MCU Linker'
	arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3  -T gd32g5x3_flash.ld -Xlinker --gc-sections -L"../ldscripts" -Wl,-Map,"Analog_voltage_detector.map" --specs=nano.specs --specs=nosys.specs -o "Analog_voltage_detector.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

Analog_voltage_detector.hex: Analog_voltage_detector.elf makefile $(OPTIONAL_TOOL_DEPS)
	@echo 'Invoking: GD ARM MCU Flash Image(Hex)'
	arm-none-eabi-objcopy -O ihex  "Analog_voltage_detector.elf"  "Analog_voltage_detector.hex"
	@echo 'Finished building: $@'
	@echo ' '

Analog_voltage_detector.bin: Analog_voltage_detector.elf makefile $(OPTIONAL_TOOL_DEPS)
	@echo 'Invoking: GD ARM MCU Flash Image(Bin)'
	arm-none-eabi-objcopy -O binary  "Analog_voltage_detector.elf"  "Analog_voltage_detector.bin"
	@echo 'Finished building: $@'
	@echo ' '

Analog_voltage_detector.lst: Analog_voltage_detector.elf makefile $(OPTIONAL_TOOL_DEPS)
	@echo 'Invoking: GD ARM MCU Listing'
	arm-none-eabi-objdump --source --all-headers --demangle --line-numbers --wide "Analog_voltage_detector.elf" > "Analog_voltage_detector.lst"
	@echo 'Finished building: $@'
	@echo ' '

Analog_voltage_detector.siz: Analog_voltage_detector.elf makefile $(OPTIONAL_TOOL_DEPS)
	@echo 'Invoking: GD ARM MCU Print Size'
	arm-none-eabi-size --format=berkeley "Analog_voltage_detector.elf"
	@echo 'Finished building: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) Analog_voltage_detector.bin Analog_voltage_detector.elf Analog_voltage_detector.hex Analog_voltage_detector.lst Analog_voltage_detector.siz
	-@echo ' '

secondary-outputs: $(SECONDARY_FLASH_HEX) $(SECONDARY_FLASH_BIN) $(SECONDARY_LIST) $(SECONDARY_SIZE)

.PHONY: all clean dependents main-build

-include ../makefile.targets
